
const dynamicroutes = [
    {
        path: '/',
        redirect: '/manager',
        component: () => import(/*webpackChunkName:'index'*/"../pages/home"),
        children: [
            {
                path: 'vipManager',
                name: 'vipManager',
                redirect: '/vipManager/invest',
                component: () => import(/*webpackChunkName:'vipManager'*/"../pages/home/vipManager"),
                meta: {
                    name: "vip管理",
                    icon: "iconfont icon-vip",
                    fullPath: "/vipManager"
                },
                children: [
                    {
                        path: 'invest',
                        name: 'invest',
                        component: () => import(/*webpackChunkName:'invest'*/"../pages/home/vipManager/invest.vue"),
                        meta: {
                            name: "vip充值",
                            icon: "iconfont icon-viplinemtuimk2",
                            fullPath: "/vipManager/invest"
                        },
                    },
                    {
                        path: 'order',
                        name: 'order',
                        component: () => import(/*webpackChunkName:'order'*/"../pages/home/vipManager/order.vue"),
                        meta: {
                            name: "订单管理",
                            icon: "iconfont icon-dingdanguanli2",
                            fullPath: "/vipManager/order"
                        }
                    }
                ]
            },
            {
                path: 'pre_order',
                component: () => import(/*webpackChunkName:'preOrder'*/"../pages/home/preOrder/index.vue"),
                name: "pre_order",
                meta: {
                    name: "预支付"
                }
            },
            {
                path: 'payment',
                component: () => import(/*webpackChunkName:'payment'*/"../pages/home/payment/index.vue"),
                name: 'payment',
                meta: {
                    name: '支付主页'
                },
                children: [
                    {
                        path: 'pay',
                        component: () => import(/*webpackChunkName:'pay'*/"../pages/home/payment/pay.vue"),
                        name: 'pay',
                        meta: {
                            name: '支付页'
                        }
                    },
                    {
                        path: 'paysuccess',
                        component: () => import(/*webpackChunkName:'paysuccess'*/"../pages/home/payment/paysuccess.vue"),
                        name: 'paysuccess',
                        meta: {
                            name: '支付成功'
                        }
                    },
                    {
                        path: 'payfail',
                        component: () => import(/*webpackChunkName:'payfail'*/"../pages/home/payment/payfail.vue"),
                        name: 'payfail',
                        meta: {
                            name: '支付失败'
                        }
                    }
                ]
            }
        ]
    },
    {
        path: '*',
        component: () => import(/*webpackChunkName:'page404'*/"../pages/page404"),
    }
]

export default dynamicroutes